import request from '@/utils/request'

export function getNotice(data) {
  return request({
    url: '/admin.php?s=Admin.Notice.NoticeList',
    method: 'post',
    data,
  })
}

export function getNoticeAll(data) {
  return request({
    url: '/admin.php?s=Admin.Notice.NoticeQuery',
    method: 'post',
    data,
  })
}

export function addNotice(data) {
  return request({
    url: '/admin.php?s=Admin.Notice.AddNotice',
    method: 'post',
    data,
  })
}

export function editNotice(data) {
  return request({
    url: '/admin.php?s=Admin.Notice.UpdateNotice',
    method: 'post',
    data,
  })
}

export function deleteNotice(data) {
  return request({
    url: '/admin.php?s=Admin.Notice.DeleteNotice',
    method: 'post',
    data,
  })
}

export function getNoticeType(data) {
  return request({
    url: '/admin.php?s=Admin.NoticeCat.NoticeCatList',
    method: 'post',
    data,
  })
}
